import request from '@utils/request'

// 获取 文章列表
const getArtLists = (params={})=>request.post('v1/artList',params)
// 删除文章
const delArt = (id)=>request.post('v1/artDel',{id})
// 添加文章
const addArt = (params = {})=>request.post('v1/artAdd',params)
// 获取文章
const getArt = ( id )=>request.get('v1/getArt',{params:{id}})
// 更新文章
const updateArt = (params = {})=>request.post('v1/updateArt',params)
// 登录
const login = (params = {})=>request.post('v1/login',params)

export {
	getArtLists,
	delArt,
	addArt,
	getArt,
	updateArt,
	login
}